package com.tywj.buscustomerapp.view.myview;

import android.content.Context;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;

/**
 * Created by dcqia on 2017/12/5.
 */

public class TaylorRecycler extends RecyclerView {
    public TaylorRecycler(Context context) {
        super(context);
    }

    public TaylorRecycler(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void onMeasure(int widthSpec, int heightSpec) {
        int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,
                MeasureSpec.AT_MOST);
        try {
            super.onMeasure(widthSpec, expandSpec);
        }catch (Exception e){

        }
    }
}
